package org.example.controller;

import org.example.annotation.ApiSecurity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description:
 *
 * @author shenguangyang
 */
@RestController
@ApiSecurity(value = "demoController")
public class DemoController {

    @GetMapping("/demo1")
    public String demo1() {
        return "demo1";
    }

    @GetMapping("/demo2")
    @ApiSecurity(value = "demo2")
    public String demo2() {
        return "demo1";
    }
}
